<?php
	require_once "../include/dbclass.php";
	require_once "tpl/head.html";
	$page_title = "后台管理系统";
	require_once "tpl/header.html";
	$nav_index = "style='background-color:rgba(255,255,255,.2);'";
	$nav_article = "";
	$nav_link = "";
	require_once "tpl/nav.html";
	$pdo = new DB();
	$q = "select * from article";
	$results = $pdo -> getall($q);
	$q .= ' order by date desc';
	$recent = $pdo -> getall($q);
	require_once "tpl/index.html";
	require_once "tpl/footer.html";